<?php
class PersonaPlanHosting extends AppModel {
	var $name = 'PersonaPlanHosting';
	var $useTable = 'personas_planes_hosting';
	var $validate = array(
		'id' => array(
			'blank' => array(
				'rule' => array('blank'),
				'on' => 'create' 
			)
		),
		'fechaini' => array(
			'notEmpty' => array(
				'rule' => array('notEmpty')
			)
		),
		'fechafin' => array(
			'notEmpty' => array(
				'rule' => array('notEmpty')
			)
		),
		'plan_hosting_id' => array(
			'notEmpty' => array(
				'rule' => array('notEmpty')
			),
			'numeric' => array(
				'rule' => array('numeric')
			)
		),
		'dominio' => array(
			'maxlength' => array(
				'rule' => array('maxLength', '50')
			),
			'notEmpty' => array(
				'rule' => array('notEmpty')
			)
		),
		'persona_id' => array(
			'notEmpty' => array(
				'rule' => array('notEmpty')
			),
			'numeric' => array(
				'rule' => array('numeric')
			)
		),
		'dominionuestro' => array(
			'boolean' => array(
				'rule' => array('boolean')
			),
			'notEmpty' => array(
				'rule' => array('notEmpty')
			)
		),
		'dominiosasociadosbenlli' => array(
			'maxlength' => array(
				'rule' => array('maxLength', '255')
			)
		),
		'dominiosasociadosotros' => array(
			'maxlength' => array(
				'rule' => array('maxLength', '255')
			)
		)
	);

	var $belongsTo = array(
		'PlanHosting' => array(
			'className' => 'PlanHosting',
			'foreignKey' => 'plan_hosting_id'
		),
		'Persona' => array(
			'className' => 'Persona',
			'foreignKey' => 'persona_id'
		)
	);
}
?>